package com.zpy.playground.nulltest;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @PostMapping("/nullLog")
    public void nullLog() {
        log.info("youjudayu" + JSON.toJSONString(null));
        System.out.println();
        log.info("goodjob");
    }


    @PostMapping("/test")
    public void test() {
        String s1 = "{\"avgTotalCallCount\":9,\"avgTotalDuration\":944,\"broadcasterCountry\":\"VE\",\"broadcasterGrade\":20,\"broadcasterLanguage\":\"es\",\"c1Key\":\"AE:ae:VE:es:20\",\"c2Key\":\"ae:es:20\",\"c3Key\":\"ae:20\",\"callOverS180Count\":2,\"callOverS180Rate\":0.036400,\"callOverS20Count\":8,\"callOverS20Rate\":0.145500,\"callOverS300Count\":1,\"callOverS300Rate\":0.018200,\"callOverS60Count\":5,\"callOverS60Rate\":0.090900,\"cijScore\":1.069572,\"coefficient\":110.09,\"coefficientKey\":\"AE:ae:VE:es:20\",\"days\":6,\"endDate\":1696809600000,\"id\":45,\"nationalCoefficient\":,\"nationalCoefficientKey\":\"AE:VE\",\"pijScore\":1.000000,\"startDate\":1696291200000,\"tijScore\":102.927273,\"tijScoreType\":3,\"totalCallCount\":55,\"totalDuration\":5661,\"userCountry\":\"AE\",\"userLanguage\":\"ae\"}";
    }
}
